Optimal. Leaf size=546 \[ -\frac {d \tan ^{-1}\left (\frac {2 \sqrt [3]{c+d \tan (e+f x)}+\sqrt [3]{c}}{\sqrt {3} \sqrt [3]{c}}\right )}{\sqrt {3} c^{2/3} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {\sqrt {3} d \sqrt [3]{c-\sqrt {-d^2}} \tan ^{-1}\left (\frac {\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c-\sqrt {-d^2}}}+1}{\sqrt {3}}\right )}{2 \sqrt {-d^2} f}+\frac {\sqrt {3} d \sqrt [3]{c+\sqrt {-d^2}} \tan ^{-1}\left (\frac {\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c+\sqrt {-d^2}}}+1}{\sqrt {3}}\right )}{2 \sqrt {-d^2} f}+\frac {3 d \sqrt [3]{c-\sqrt {-d^2}} \log \left (\sqrt [3]{c-\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}-\frac {3 d \sqrt [3]{c+\sqrt {-d^2}} \log \left (\sqrt [3]{c+\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}+\frac {d \sqrt [3]{c-\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}-\frac {d \sqrt [3]{c+\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}+\frac {1}{4} x \sqrt [3]{c-\sqrt {-d^2}}+\frac {1}{4} x \sqrt [3]{c+\sqrt {-d^2}}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.58, antiderivative size = 546, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 10, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.435, Rules used = {3568, 3653, 3485, 712, 50, 57, 617, 204, 31, 3634} \[ -\frac {d \tan ^{-1}\left (\frac {2 \sqrt [3]{c+d \tan (e+f x)}+\sqrt [3]{c}}{\sqrt {3} \sqrt [3]{c}}\right )}{\sqrt {3} c^{2/3} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {\sqrt {3} d \sqrt [3]{c-\sqrt {-d^2}} \tan ^{-1}\left (\frac {\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c-\sqrt {-d^2}}}+1}{\sqrt {3}}\right )}{2 \sqrt {-d^2} f}+\frac {\sqrt {3} d \sqrt [3]{c+\sqrt {-d^2}} \tan ^{-1}\left (\frac {\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c+\sqrt {-d^2}}}+1}{\sqrt {3}}\right )}{2 \sqrt {-d^2} f}+\frac {3 d \sqrt [3]{c-\sqrt {-d^2}} \log \left (\sqrt [3]{c-\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}-\frac {3 d \sqrt [3]{c+\sqrt {-d^2}} \log \left (\sqrt [3]{c+\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}+\frac {d \sqrt [3]{c-\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}-\frac {d \sqrt [3]{c+\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}+\frac {1}{4} x \sqrt [3]{c-\sqrt {-d^2}}+\frac {1}{4} x \sqrt [3]{c+\sqrt {-d^2}}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 50
Rule 57
Rule 204
Rule 617
Rule 712
Rule 3485
Rule 3568
Rule 3634
Rule 3653
Rubi steps
\begin {align*} \int \cot ^2(e+f x) \sqrt [3]{c+d \tan (e+f x)} \, dx &=-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}-\int \frac {\cot (e+f x) \left (-\frac {d}{3}+c \tan (e+f x)+\frac {2}{3} d \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{2/3}} \, dx\\ &=-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}+\frac {1}{3} d \int \frac {\cot (e+f x) \left (1+\tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{2/3}} \, dx-\int \sqrt [3]{c+d \tan (e+f x)} \, dx\\ &=-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}+\frac {d \operatorname {Subst}\left (\int \frac {1}{x (c+d x)^{2/3}} \, dx,x,\tan (e+f x)\right )}{3 f}-\frac {d \operatorname {Subst}\left (\int \frac {\sqrt [3]{c+x}}{d^2+x^2} \, dx,x,d \tan (e+f x)\right )}{f}\\ &=-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}-\frac {d \operatorname {Subst}\left (\int \left (\frac {\sqrt {-d^2} \sqrt [3]{c+x}}{2 d^2 \left (\sqrt {-d^2}-x\right )}+\frac {\sqrt {-d^2} \sqrt [3]{c+x}}{2 d^2 \left (\sqrt {-d^2}+x\right )}\right ) \, dx,x,d \tan (e+f x)\right )}{f}-\frac {d \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{c}-x} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {d \operatorname {Subst}\left (\int \frac {1}{c^{2/3}+\sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{2 \sqrt [3]{c} f}\\ &=-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}+\frac {d \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c}}\right )}{c^{2/3} f}+\frac {d \operatorname {Subst}\left (\int \frac {\sqrt [3]{c+x}}{\sqrt {-d^2}-x} \, dx,x,d \tan (e+f x)\right )}{2 \sqrt {-d^2} f}+\frac {d \operatorname {Subst}\left (\int \frac {\sqrt [3]{c+x}}{\sqrt {-d^2}+x} \, dx,x,d \tan (e+f x)\right )}{2 \sqrt {-d^2} f}\\ &=-\frac {d \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c}}}{\sqrt {3}}\right )}{\sqrt {3} c^{2/3} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}+\frac {\left (d \left (c+\sqrt {-d^2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\left (\sqrt {-d^2}-x\right ) (c+x)^{2/3}} \, dx,x,d \tan (e+f x)\right )}{2 \sqrt {-d^2} f}-\frac {\left (d^2+c \sqrt {-d^2}\right ) \operatorname {Subst}\left (\int \frac {1}{(c+x)^{2/3} \left (\sqrt {-d^2}+x\right )} \, dx,x,d \tan (e+f x)\right )}{2 d f}\\ &=\frac {1}{4} \sqrt [3]{c-\sqrt {-d^2}} x+\frac {1}{4} \sqrt [3]{c+\sqrt {-d^2}} x-\frac {d \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c}}}{\sqrt {3}}\right )}{\sqrt {3} c^{2/3} f}-\frac {\sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \log (\cos (e+f x))}{4 d f}-\frac {d \sqrt [3]{c+\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}+\frac {\left (3 d \sqrt [3]{c+\sqrt {-d^2}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{c+\sqrt {-d^2}}-x} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}+\frac {\left (3 d \left (c+\sqrt {-d^2}\right )^{2/3}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (c+\sqrt {-d^2}\right )^{2/3}+\sqrt [3]{c+\sqrt {-d^2}} x+x^2} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}+\frac {\left (3 \left (d^2+c \sqrt {-d^2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{c-\sqrt {-d^2}}-x} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{4 d \left (c-\sqrt {-d^2}\right )^{2/3} f}+\frac {\left (3 \left (d^2+c \sqrt {-d^2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\left (c-\sqrt {-d^2}\right )^{2/3}+\sqrt [3]{c-\sqrt {-d^2}} x+x^2} \, dx,x,\sqrt [3]{c+d \tan (e+f x)}\right )}{4 d \sqrt [3]{c-\sqrt {-d^2}} f}\\ &=\frac {1}{4} \sqrt [3]{c-\sqrt {-d^2}} x+\frac {1}{4} \sqrt [3]{c+\sqrt {-d^2}} x-\frac {d \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c}}}{\sqrt {3}}\right )}{\sqrt {3} c^{2/3} f}-\frac {\sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \log (\cos (e+f x))}{4 d f}-\frac {d \sqrt [3]{c+\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {3 \sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \log \left (\sqrt [3]{c-\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 d f}-\frac {3 d \sqrt [3]{c+\sqrt {-d^2}} \log \left (\sqrt [3]{c+\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}-\frac {\left (3 d \sqrt [3]{c+\sqrt {-d^2}}\right ) \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c+\sqrt {-d^2}}}\right )}{2 \sqrt {-d^2} f}-\frac {\left (3 \left (d^2+c \sqrt {-d^2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c-\sqrt {-d^2}}}\right )}{2 d \left (c-\sqrt {-d^2}\right )^{2/3} f}\\ &=\frac {1}{4} \sqrt [3]{c-\sqrt {-d^2}} x+\frac {1}{4} \sqrt [3]{c+\sqrt {-d^2}} x-\frac {d \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c}}}{\sqrt {3}}\right )}{\sqrt {3} c^{2/3} f}+\frac {\sqrt {3} \sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c-\sqrt {-d^2}}}}{\sqrt {3}}\right )}{2 d f}+\frac {\sqrt {3} d \sqrt [3]{c+\sqrt {-d^2}} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c+\sqrt {-d^2}}}}{\sqrt {3}}\right )}{2 \sqrt {-d^2} f}-\frac {\sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \log (\cos (e+f x))}{4 d f}-\frac {d \sqrt [3]{c+\sqrt {-d^2}} \log (\cos (e+f x))}{4 \sqrt {-d^2} f}-\frac {d \log (\tan (e+f x))}{6 c^{2/3} f}+\frac {d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )}{2 c^{2/3} f}-\frac {3 \sqrt {-d^2} \sqrt [3]{c-\sqrt {-d^2}} \log \left (\sqrt [3]{c-\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 d f}-\frac {3 d \sqrt [3]{c+\sqrt {-d^2}} \log \left (\sqrt [3]{c+\sqrt {-d^2}}-\sqrt [3]{c+d \tan (e+f x)}\right )}{4 \sqrt {-d^2} f}-\frac {\cot (e+f x) \sqrt [3]{c+d \tan (e+f x)}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 3.37, size = 464, normalized size = 0.85 \[ \frac {-\frac {1}{6} \sqrt [3]{c} d \left (\log \left (c^{2/3}+\sqrt [3]{c} \sqrt [3]{c+d \tan (e+f x)}+(c+d \tan (e+f x))^{2/3}\right )+2 \sqrt {3} \tan ^{-1}\left (\frac {2 \sqrt [3]{c+d \tan (e+f x)}+\sqrt [3]{c}}{\sqrt {3} \sqrt [3]{c}}\right )\right )+d \sqrt [3]{c+d \tan (e+f x)}+\frac {1}{4} i c \sqrt [3]{c-i d} \left (2 \sqrt {3} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c-i d}}}{\sqrt {3}}\right )-2 \log \left (-\sqrt [3]{c+d \tan (e+f x)}+\sqrt [3]{c-i d}\right )+\log \left (\sqrt [3]{c-i d} \sqrt [3]{c+d \tan (e+f x)}+(c+d \tan (e+f x))^{2/3}+(c-i d)^{2/3}\right )\right )-\frac {1}{4} i c \sqrt [3]{c+i d} \left (2 \sqrt {3} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{c+d \tan (e+f x)}}{\sqrt [3]{c+i d}}}{\sqrt {3}}\right )-2 \log \left (-\sqrt [3]{c+d \tan (e+f x)}+\sqrt [3]{c+i d}\right )+\log \left (\sqrt [3]{c+i d} \sqrt [3]{c+d \tan (e+f x)}+(c+d \tan (e+f x))^{2/3}+(c+i d)^{2/3}\right )\right )+\frac {1}{3} \sqrt [3]{c} d \log \left (\sqrt [3]{c}-\sqrt [3]{c+d \tan (e+f x)}\right )-\cot (e+f x) (c+d \tan (e+f x))^{4/3}}{c f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.65, size = 25, normalized size = 0.05 \[ -\frac {{\left (d \tan \left (f x + e\right ) + c\right )}^{\frac {1}{3}}}{f \tan \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {undef} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.63, size = 0, normalized size = 0.00 \[ \int \left (\cot ^{2}\left (f x +e \right )\right ) \left (c +d \tan \left (f x +e \right )\right )^{\frac {1}{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (d \tan \left (f x + e\right ) + c\right )}^{\frac {1}{3}} \cot \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 21.08, size = 3239, normalized size = 5.93 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt [3]{c + d \tan {\left (e + f x \right )}} \cot ^{2}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________